<?php
class AppController extends Controller {
	
    var $components = array('Acl','Auth', 'RequestHandler');
    function index() {

	}
    
    
    function beforeFilter() {
        //Configure AuthComponent
        $this->Auth->actionPath = 'controllers/';
        $this->set('SiteRoot', '/app/'); 
        $this->Auth->authorize = 'actions';
        $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
        $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login');
        $this->Auth->loginRedirect = array('controller' => 'posts', 'action' => 'add');
    }
}
?>